﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DetalleMeterialEstructural.aspx.cs" Inherits="YERIL_PI_INT.PaginasWebs.Modulos.Login.DetalleMeterialEstructural" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link href="../../../Content/bootstrap/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700"/>
    <link href="../../../Recursos/HojasEstilo/HELogin.css" rel="stylesheet" />
    <script type="text/javascript">
        function Alerta_Eliminar() {
            var respuesta = confirm("¿Desea eliminar <%=seleccion%>?");
            if (respuesta == true) {
                return true;
            }
            else {
                return false;
            }

        }

    </script>
</head>

<body class="cuerpo">
    <form id="form1" runat="server">
    <div class="container">
    <legend>Detalle Material Estructural</legend>
        
            
         <div class="alert alert-info">
            <button type="button" class="close" data-dismiss="alert">&times;</button>
             <strong> <% if(MensajeError==null){MensajeError="No hay Errores";} %><%=MensajeError %>
             <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="Group1" />
             </strong>
        </div>

       <div class="row">
          <div class="col-md-4" >
            <div class="panel panel-default">
                <div class="panel-heading">Lista de Estructuras</div>
                 <div class="panel-body">
                   <div class="control-group col-xs-9">
                        <div class="btn-group">
                            <asp:ImageButton ID="btnAgregarEstructura" runat="server"   CssClass="btn btn-default"  ImageUrl="~/Recursos/Imagenes/glyphicons_190_circle_plus.png" Height="35" Width="45" />
                        </div>
                        <br /><br />
                        <div class="controls">
                            <asp:ListBox ID="lbxEstructura" runat="server" CssClass="form-control"  autopostback="true" OnSelectedIndexChanged="lbxEstructura_SelectedIndexChanged"></asp:ListBox>
                         </div>
                    </div>
                 </div>
                </div>
            </div> 

            <div class="col-md-4" >
                
                <div class="panel panel-default">
                <div class="panel-heading">Lista de SubEstructuras</div>
                 <div class="panel-body">
                   <div class="control-group col-xs-9">
                        <div class="btn-group">
                            <asp:ImageButton ID="btnAgregarSubEstructura" runat="server"   CssClass="btn btn-default"  ImageUrl="~/Recursos/Imagenes/glyphicons_190_circle_plus.png" Height="35" Width="45"   />
                        </div>
                       <br /><br />
                        <div class="controls">
                            <asp:ListBox ID="lbxSubEstructura" runat="server" CssClass="form-control"  autopostback="true" OnSelectedIndexChanged="lbxSubEstructura_SelectedIndexChanged1" ></asp:ListBox>
                         </div>
                    </div>
                 </div>
                </div>

               
            </div> 

           <div class="col-md-4" >
                
                <div class="panel panel-default">
                <div class="panel-heading">Lista de SubTipoEstructuras</div>
                 <div class="panel-body">
                   <div class="control-group col-xs-9">
                        <div class="btn-group">
                            <asp:ImageButton ID="btnAgregarSubTipoEstructura" runat="server"   CssClass="btn btn-default"  ImageUrl="~/Recursos/Imagenes/glyphicons_190_circle_plus.png" Height="35" Width="45"  />
                            <asp:ImageButton ID="btnGuardarOrdenamiento" runat="server"   CssClass="btn btn-default"  ImageUrl="~/Recursos/Imagenes/glyphicons_446_floppy_save.png" Height="35" Width="45"  />
                        </div>
                        <br /><br />
                        <div class="controls">
                            <asp:ListBox ID="lbxSubTipoEstructura" runat="server" CssClass="form-control"  autopostback="true" OnSelectedIndexChanged="lbxSubTipoEstructura_SelectedIndexChanged"  ></asp:ListBox>
                         </div>
                    
                    </div>
                 </div>
                </div>

                <br />
               
            </div> 
            
               

               
           
                
                
       </div>
    
        <div class="panel panel-default">
                <div class="panel-heading">Listado del Materiales Estructurales</div>
                 <div class="panel-body">
                   <div class="control-group col-xs-9">
                        
                     <asp:GridView ID="gvMaterialEstructural" runat="server" CssClass="table table-bordered table-hover" OnSelectedIndexChanged="gvMaterialEstructural_SelectedIndexChanged"   >
                        <Columns>
                            <asp:CommandField ButtonType="Image" ShowSelectButton="True" SelectImageUrl="~/Recursos/Imagenes/glyphicons_217_circle_arrow_right.png" />
                        </Columns>
            </asp:GridView>
                    
                    </div>
                 </div>
        </div>   
         
        <div class="panel panel-default">
                <div class="panel-heading">Listado del Detalle</div>
                 <div class="panel-body">
                 <div class="row">
                   <div class="col-md-6" >
                        
                    
                           <div class="control-group">
                            <%--<label class="control-label" for="txtCodMaterial">Código Material</label>--%>
                            <div class="controls">
                                    <asp:TextBox ID="txtCodMaterial" runat="server" Width="400px" CssClass="form-control" ></asp:TextBox>
                             </div>
                       </div>
                       <div class="control-group">
                            <%--<label class="control-label" for="txtCodOrden">Código Orden</label>--%>
                            <div class="controls">
                                    <asp:TextBox ID="txtCodOrden" runat="server" Width="400px" CssClass="form-control" ></asp:TextBox>
                             </div>
                       </div>
                       <div class="control-group">
                           <%-- <label class="control-label" for="txtCodEstructura">Código Estructura</label>--%>
                            <div class="controls">
                                    <asp:TextBox ID="txtCodEstructura" runat="server" Width="400px" CssClass="form-control" ></asp:TextBox>
                             </div>
                       </div>
                       <div class="control-group">
                            <%--<label class="control-label" for="txtCodSubEstructura">Código SubEstructura</label>--%>
                            <div class="controls">
                                    <asp:TextBox ID="txtCodSubEstructura" runat="server" Width="400px" CssClass="form-control" ></asp:TextBox>
                             </div>
                       </div>
                       <div class="control-group">
                            <%--<label class="control-label" for="txtCodSubTipoEstructura">Código SubTipoEstructura</label>--%>
                            <div class="controls">
                                    <asp:TextBox ID="txtCodSubTipoEstructura" runat="server" Width="400px" CssClass="form-control" ></asp:TextBox>
                             </div>
                       </div>
                       <div class="control-group">
                            <label class="control-label" for="txtMaterial">Material</label>
                            <div class="controls">
                                    <asp:TextBox ID="txtMaterial" runat="server" Width="400px" CssClass="form-control" ></asp:TextBox>
                             </div>
                       </div>

                       
                       <div class="control-group">
                            <label class="control-label" for="txtLargo">Largo</label>
                            <div class="controls">
                                    <asp:TextBox ID="txtLargo" runat="server" Width="400px" CssClass="form-control" ></asp:TextBox>
                             </div>
                       </div>
                       <div class="control-group">
                            <label class="control-label" for="txtAncho">Ancho</label>
                            <div class="controls">
                                    <asp:TextBox ID="txtAncho" runat="server" Width="400px" CssClass="form-control" ></asp:TextBox>
                             </div>
                       </div>
                       
                       <div class="control-group">
                            <label class="control-label" for="txtDesc">Descripción</label>
                            <div class="controls">
                                    <asp:TextBox ID="txtDesc" runat="server" Width="400px" Height="100px" CssClass="form-control" TextMode="MultiLine" ></asp:TextBox>
                             </div>
                       </div>
                </div>
<div class="col-md-6" >
                       <div class="control-group">
                            <label class="control-label" for="dlSeccion">Seccion</label>
                            <div class="controls">
                                <asp:DropDownList ID="dlSeccion" runat="server" CssClass="form-control" Width="200px"></asp:DropDownList>
                             </div>
                       </div>
                        <div class="control-group">
                            <label class="control-label" for="txtCantMat">Cantidad Material</label>
                            <div class="controls">
                                    <asp:TextBox ID="txtCantMat" runat="server" Width="400px" CssClass="form-control" OnTextChanged="txtCantMat_TextChanged" autopostback="true"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCantMat" ErrorMessage="Digite Cantidad Material" ForeColor="Red" SetFocusOnError="True" ValidationGroup="Group1">*</asp:RequiredFieldValidator>
                                    <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtCantMat" ErrorMessage="Digite valor numérico en Cant Mat" ForeColor="Red" MaximumValue="999,999" MinimumValue="0" SetFocusOnError="True" Type="Double" ValidationGroup="Group1">*</asp:RangeValidator>
                             </div>
                       </div>
                       <div class="control-group">
                            <label class="control-label" for="txtPrecioUnitario">Precio Unitario</label>
                            <div class="controls">
                                    <asp:TextBox ID="txtPrecioUnitario" runat="server" Width="400px" CssClass="form-control" ></asp:TextBox>
                             </div>
                       </div>

                       <div class="control-group">
                            <label class="control-label" for="txtTotalCol">Total Colones</label>
                            <div class="controls">
                                    <asp:TextBox ID="txtTotalCol" runat="server" Width="400px" CssClass="form-control" ></asp:TextBox>
                             </div>
                       </div>

                        <div class="control-group">
                            <label class="control-label" for="txtTotalDol">Total Dolares</label>
                            <div class="controls">
                                    <asp:TextBox ID="txtTotalDol" runat="server" Width="400px"  CssClass="form-control" ></asp:TextBox>
                             </div>
                       </div>
                       <br /><br />

                        <div class="btn-group">
                            <asp:ImageButton ID="btnGuardar" runat="server"   CssClass="btn btn-default"  ImageUrl="~/Recursos/Imagenes/glyphicons_446_floppy_save.png" Height="35" Width="45" OnClick="btnGuardar_Click"  />
                            <asp:ImageButton ID="btnSalir" runat="server"   CssClass="btn btn-default"  ImageUrl="~/Recursos/Imagenes/glyphicons_192_circle_remove.png" Height="35" Width="45" OnClick="btnSalir_Click" ToolTip="Volver a Orden de trabajo"  />
                        </div>
                       
                       
<div />
                   </div> 
                 
                 </div>
        </div>   
    
         </div>
    </div>


        <div class="panel panel-default">
                <div class="panel-heading">Listado de Materiales Agregados al Proyecto</div>
                 <div class="panel-body">
                   <div class="control-group col-xs-9">

                       <div class="control-group">
                        <div class="btn-group">
                            
                            <asp:ImageButton ID="btnEliminarEstructural" runat="server"   CssClass="btn btn-default"  ImageUrl="~/Recursos/Imagenes/glyphicons_191_circle_minus.png" Height="35" Width="45"  OnClientClick="return Alerta_Eliminar()"  />
                        </div>
                        
                    
                    </div>
                        
                     <asp:GridView ID="gvDetalleEstructural" runat="server" CssClass="table table-bordered table-hover" OnSelectedIndexChanged="gvDetalleEstructural_SelectedIndexChanged"   >
                        <Columns>
                            <asp:CommandField ButtonType="Image" ShowSelectButton="True" SelectImageUrl="~/Recursos/Imagenes/glyphicons_217_circle_arrow_right.png" />
                        </Columns>
            </asp:GridView>
                    
                    </div>
                 </div>
        </div>  

        </div>
         
    </form>
     <script src="../Scripts/jquery-1.9.1.min.js"></script>
    <script src="../Scripts/bootstrap.min.js"></script>
</body>
</html>
